home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d27
/
datespan.arc
/
DATESPAN.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1991-12-04
|
2KB
|
26 lines
/*--------------------------------------------------------------------- */
/* NAME ................... DATESPAN */
/* FUNCTION ............... CALCULATE THE NUMBER OF DAYS BETWEEN TWO */
/* DATES. */
/* */
/* COMMAND PROCESSOR ...... DATESPAN1 CLP */
/* */
/* AUTHOR ................. TERRENCE W. MOYER */
/* 55 KEPPEL AVE */
/* WEST LAWN, PA. 19609 */
/* */
/* DATE ................... NOVEMBER 20, 1986 */
/* */
/*--------------------------------------------------------------------- */
CMD PROMPT('Span of Days for Two Dates')
PARM KWD(DATE1) TYPE(*DEC) LEN(6) DFT(*TODAY) +
SPCVAL((*TODAY 999999) (T 999999)) +
PROMPT('First Date (MMDDYY):')
PARM KWD(DATE2) TYPE(*DEC) LEN(6) +
PROMPT('Second Date (MMDDYY):')
PARM KWD(SPANTYPE) TYPE(*DEC) LEN(1) RSTD(*YES) +
DFT(*ENDDATE) SPCVAL((*INCLUSIVE +1) (I +1) +
(*EXCLUSIVE -1) (X -1) (*ENDDATE 0) (E 0)) +
PROMPT('Include both, neither or date2')
1) (X -1) (*ENDDATE 0) (E 0)) +
PROMPT('In